home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 October / Macworld CD 17.10.iso / pc / Data / Shareware / Utilities / KeyQuencer Lite 2.5.5 Installer / Developer Toolkit / Common Code / KQGestalt.h < prev    next >
Encoding:
Text File  |  1997-09-29  |  2.4 KB  |  59 lines  |  [TEXT/CWIE]

  1. // =============================================================================
  2. // KEYQUENCER GESTALT HEADER - VERSION 2.1 - MARCH 1997
  3. // By Alessandro Levi Montalcini <alm@torino.alpcom.it>
  4. // ©1994-97 Binary Software, Inc. <http://www.binarysoft.com>
  5. // This text looks best in monaco 9 font, 4 spaces per tab, no wrapping
  6. //==============================================================================
  7. #pragma once
  8. #ifndef _H_kqgestalt
  9. #define _H_kqgestalt
  10.  
  11. #include "Extension.h"
  12. #include "INITGestalt.h"
  13. //==============================================================================
  14. #if GENERATINGPOWERPC
  15. #pragma options align=mac68k
  16. #endif
  17. //==============================================================================
  18. // KEYQUENCER GESTALT RECORD (COMMERCIAL VERSIONS):
  19. // Starting from KQ 2.0, Gestalt returns a pointer to an INITGestalt structure
  20. // that contains a GluePtr in the igRefCon field.
  21.  
  22. #ifndef kKQ20GestaltSelector
  23. #define kKQ20GestaltSelector    'KQen'        // returns a pointer to an INITGestalt record
  24. #endif
  25.  
  26. #define GET_KQ20_GLUE(gestaltResponse) ((GluePtr)((INITGestaltRecPtr)(gestaltResponse))->igRefCon)
  27.  
  28. // =============================================================================
  29. // KEYQUENCER GESTALT RECORD (SHAREWARE VERSIONS):
  30. // In all previous shareware and beta versions (1.0 to 1.2.2),
  31. // Gestalt returned a pointer to the KQGestaltRec data structure.
  32.  
  33. #define kKQ12GestaltSelector    'KQue'        // returns a pointer to the structure below
  34. #define kKQ12GestaltVersion        1            // values from 1 to 4 are always OK
  35.  
  36. typedef struct {
  37.     long        kqSignature;                // must be kKQ12GestaltSelector
  38.     short        kqGestaltVersion;            // must be >= kKQ12GestaltVersion
  39.     short        kqReservedField;            // reserved
  40.     GluePtr        *glueRecPtr;                // pointer to the GlueRecPtr
  41. } KQGestaltRec, *KQGestaltPtr;                // record (defined in Extension.h)
  42.  
  43. #define GET_KQ12_GLUE(gestaltResponse) (*((KQGestaltPtr)(gestaltResponse))->glueRecPtr)
  44.  
  45. //==============================================================================
  46. // UTILITY ROUTINES IN KQGESTALT.C:
  47.  
  48. GluePtr GetKeyQuencerGlue(void);
  49.  
  50. // =============================================================================
  51. #if GENERATINGPOWERPC
  52. #pragma options align=reset
  53. #endif
  54. //==============================================================================
  55.  
  56. #endif  // kqgestalt.h
  57.  
  58. // =============================================================================
  59.